<template>
  <div class="xtx-list-skeleton">
    <section class="xtx-list-skeleton-list" v-for="i in 4" :key="i">
      <Skeleton
        class="xtx-list-skeleton-list__item"
        width="306px"
        bg-color="#e4e4e4"
        height="306px"
        animate
      />
      <Skeleton
        class="xtx-list-skeleton-list__item"
        width="160px"
        bg-color="#e4e4e4"
        height="24px"
        animate
      />
      <Skeleton
        class="xtx-list-skeleton-list__item"
        width="120px"
        bg-color="#e4e4e4"
        height="24px"
        animate
      />
    </section>
  </div>
</template>

<script setup lang="ts">
import Skeleton from '@/components/Skeleton.vue'
defineOptions({
  name: 'ListSkeleton'
})
</script>

<style lang="scss" scoped>
.xtx-list-skeleton {
  display: flex;
  justify-content: space-between;
  width: 1240px;
  height: 406px;
  background-color: $basic-white;

  &-list {
    width: 306px;

    .xtx-skeleton ~ .xtx-skeleton {
      display: block;
      margin: 16px auto 0;
    }
  }
}
</style>
